package com.oracle.index;

import java.io.Serializable;

public class NewsIndex implements Serializable {

    private String id;

    private String title;

    private String category;

    private String author;

    private String image;

    public NewsIndex() {
    }

    public NewsIndex(String id, String title, String category, String author, String image) {
        this.id = id;
        this.title = title;
        this.category = category;
        this.author = author;
        this.image = image;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "NewsIndex{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", category='" + category + '\'' +
                ", author='" + author + '\'' +
                ", image='" + image + '\'' +
                '}';
    }
}
